Skip to content

fix(quick-panel): adjust icon and text color opacity with hover effects#471

Open
MyLeeJiEun wants to merge 1 commit into
linuxdeepin:masterfrom
MyLeeJiEun:fork-from-master-0618-fix-issue-314503
Open

fix(quick-panel): adjust icon and text color opacity with hover effects#471
MyLeeJiEun wants to merge 1 commit into
linuxdeepin:masterfrom
MyLeeJiEun:fork-from-master-0618-fix-issue-314503

Conversation

@MyLeeJiEun

Copy link
Copy Markdown
  1. Add kNormalOpacity (0.7) and kHoverOpacity (1.0) constants in CommonIconButton, controlling icon/text transparency via parentHovered state
  2. Add HoverEventFilter to QuickPluginItem, forwarding enter/leave events to child widgets for hover state tracking
  3. Add QGraphicsOpacityEffect to PluginItemWidget for icon/label/connect button with enterEvent/leaveEvent overrides
  4. Update SliderContainer to read _dtl_plugin_hovered property and adjust progress track opacity accordingly
  5. Backport identical opacity logic to wireless-casting plugin's CommonIconButton copy

Log: Adjust colors and hover effects for quick panel icons and text

fix(快捷面板): 调整快捷面板图标和文字颜色及hover效果

  1. CommonIconButton 增加 kNormalOpacity(0.7) 和 kHoverOpacity(1.0) 常量,通过 parentHovered 状态控制图标/文字透明度
  2. QuickPluginItem 增加 HoverEventFilter,将 enter/leave 事件转发到子控件实现 hover 状态跟踪
  3. PluginItemWidget 增加 icon/label/connect button 的 QGraphicsOpacityEffect,重写 enterEvent/leaveEvent
  4. SliderContainer 读取 _dtl_plugin_hovered 属性,根据 hover 状态调整进度条透明度
  5. 无线投屏插件中的 CommonIconButton 同步相同的透明度逻辑

Log: 调整快捷面板图标和文字颜色及hover效果
PMS: BUG-314503

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @MyLeeJiEun, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: MyLeeJiEun

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@deepin-ci-robot

Copy link
Copy Markdown

Hi @MyLeeJiEun. Thanks for your PR. 😃

@deepin-ci-robot

Copy link
Copy Markdown

Hi @MyLeeJiEun. Thanks for your PR.

I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@MyLeeJiEun MyLeeJiEun force-pushed the fork-from-master-0618-fix-issue-314503 branch 5 times, most recently from d481287 to b637814 Compare June 22, 2026 06:27
1. Added QGraphicsOpacityEffect with default 0.7 opacity to PluginItemWidget and PluginItem
2. Added hover animation that transitions opacity from 0.7 to 1.0 on mouse enter
3. Added leave animation that transitions opacity back to 0.7 on mouse leave
4. Exported animation constants (opacity values, duration) as public static members

Log: Adjust icon/text opacity and add hover animation for quick panel plugin items

fix(plugin-item): 调整透明度与悬停动画

1. 为 PluginItemWidget 和 PluginItem 添加 QGraphicsOpacityEffect,默认透明度 0.7
2. 添加悬停动画:鼠标进入时透明度从 0.7 过渡到 1.0
3. 添加离开动画:鼠标离开时透明度恢复为 0.7
4. 将动画常量(透明度值、持续时间)导出为公共静态成员

Log: 调整快捷面板插件项的图标文字透明度并添加悬停动画效果
PMS: BUG-314503
@MyLeeJiEun MyLeeJiEun force-pushed the fork-from-master-0618-fix-issue-314503 branch from b637814 to a824da9 Compare June 22, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants